package User;

import Book.BookList;
import operation.IOperation;

public abstract class User {
    protected String name;

    public User(String name) {
        this.name = name;
    }

    protected IOperation[] iOperations;

    public abstract int menu();

    public void dowork(int pos, BookList bookList) {
        this.iOperations[pos].work(bookList);
    }
}
